package 并发编程16.阻塞队列;

import java.util.concurrent.*;

/**
 * @author idea
 * @data 2019/2/10
 */
public class QueueTest {

    private static ArrayBlockingQueue<Integer> arrayBlockingQueue=new ArrayBlockingQueue(10);

    private static LinkedBlockingDeque<Integer> linkedBlockingDeque=new LinkedBlockingDeque<>();

    private static PriorityBlockingQueue<Integer> priorityBlockingQueue=new PriorityBlockingQueue<>();

    private static DelayQueue delayQueue=new DelayQueue();

    public static void test1(){
        arrayBlockingQueue.add(1);
    }

    public static void test2(){
        linkedBlockingDeque.add(1);
    }

    public static void test3(){
        priorityBlockingQueue.add(1);
    }





    public static void main(String[] args) {

    }
}
